package robo

type roboActionTypeEnum = string

type roboActionTypeStruct struct {
	BAG_REQ          roboActionTypeEnum
	CAPPING_REQ      roboActionTypeEnum
	TAKE_OFF_CAP_REQ roboActionTypeEnum
}

// 机械臂任务类型枚举
var RoboActionTypeEnum = &roboActionTypeStruct{
	BAG_REQ:          "BAG_REQ",
	CAPPING_REQ:      "CAPPING_REQ",
	TAKE_OFF_CAP_REQ: "TAKE_OFF_CAP_REQ",
}

var roboActionTypeMap = map[roboActionTypeEnum]string{
	RoboActionTypeEnum.BAG_REQ:          "抓袋-放袋任务",
	RoboActionTypeEnum.CAPPING_REQ:      "抓盖-封盖任务（箱满封盖）",
	RoboActionTypeEnum.TAKE_OFF_CAP_REQ: "取盖-放盖任务（空箱取盖）",
}

// 获取机械臂任务类型枚举相应中文描述
func GetRoboActionTypeDesc(code roboActionTypeEnum) string {
	if action, ok := roboActionTypeMap[code]; ok {
		return action
	}
	return "未知类型"
}
